From 0183acccf8d85a579c42d232423d68bcb9c3e29e Mon Sep 17 00:00:00 2001 From: Jan Heller Date: Wed, 21 May 2008 22:31:39 +0000 Subject: [PATCH] changed fallback macro to have the same return type as rint(). 2008-05-22 Jan Heller * extensions/util.h: changed fallback macro to have the same return type as rint(). svn path=/trunk/; revision=315 --- ChangeLog | 5 +++++ extensions/util.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 92dc6eb..f5955a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-22 Jan Heller + + * extensions/util.h: changed fallback macro to have the + same return type as rint(). + 2008-05-21 Sven Neumann * babl/babl-internal.h (rint): changed fallback macro to have the diff --git a/extensions/util.h b/extensions/util.h index 4836dfe..1e6b070 100644 --- a/extensions/util.h +++ b/extensions/util.h @@ -25,7 +25,7 @@ #include "config.h" #ifndef HAVE_RINT -# define rint(f) ((long) floor (((double) f) + 0.5)) +# define rint(f) (floor (((double) (f)) + 0.5)) #endif -- 2.30.2